import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
    mode:'history',
    routes:[
        {path:'/',redirect:'/index/ry'},
        {path:'/index', component:() => import('@/views/Index'),

            children:[
                {path:'ry',component:() => import('@/views/Index/Hotshowing')},
                {path:'dy',component:() => import('@/views/Index/Daiying')}
            ]

        },
        {path:'/cinema',component:() => import('@/views/Cinema')}
    ]
})

export default router